import request from "../utils/request";

// 分页查询物流公司
export const logisticsPage = data => {
    return request({
        method: 'POST',
        url: '/logistics/findPage',
        data
    })
}
// 查询所有物流公司
export const logisticsAll = () => {
    return request({
        method: 'GET',
        url: '/logistics/findAll'
    })
}
// 添加物流公司
export const logisticsAdd = data => {
    return request({
        method: 'POST',
        url: '/logistics/save',
        data
    })
}
// 编辑物流公司
export const logisticsEdit = data => {
    return request({
        method: 'POST',
        url: '/logistics/edit',
        data
    })
}
// 根据ID查询物流公司
export const logisticsById = id => {
    return request({
        method: 'GET',
        url: '/logistics/findById?id=' + id
    })
}
// 根据id删除物流公司
export const deleteLogisticsById = ids => {
    return request({
        method: 'GET',
        url: '/logistics/deleteById/' + ids
    })
}
